package com.xb.loan.usercenter.account.dao;


import com.xb.loan.usercenter.account.dao.bean.LotCashInfo;
import com.xb.loan.util.mybatis.MyBatisRepository;

import java.util.Map;

@MyBatisRepository
public interface LotCashInfoDao {
	int insert(LotCashInfo lotCashInfo);

	int updateLotCashInfo(Map<String, Object> params);
	
	void addMoney(LotCashInfo lotCashInfo);
	
	int deductMoney(LotCashInfo lotCashInfo);

	LotCashInfo queryLotCashInfoById(String accountId);
	
	LotCashInfo queryLotCashInfoByUserId(String userId);

	/**
	 * 扣费冲正
	 * @param flushesParams
	 */
	void flushes(Map<String, Object> flushesParams);
}